package com.zhuss.core.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.core.banner.SearchBannerBo;
import com.zhuss.bean.vo.core.banner.DetailBannerVo;
import com.zhuss.bean.vo.core.banner.ListBannerVo;
import com.zhuss.core.db.dao.gen.BannerMapper;
import com.zhuss.core.db.entity.Banner;

@Mapper
public interface BannerDao extends BannerMapper {
	
	void create(Banner record);
	
	void delete(Banner record);
	
	List<Banner> listAll();

	List<ListBannerVo> list(SearchBannerBo bo);

	Integer countList(SearchBannerBo bo);

	DetailBannerVo detail(@Param("bannerId") Long bannerId);
	
	List<Banner> listByName(@Param("name") String name);
	
	List<DetailBannerVo> listByType(@Param("type") Integer type);

    
}